package com.alibaba.otter.node.etl.load.loader.mq.rabbit.callback;

import com.rabbitmq.client.Channel;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class DefaultDisconnectedCallback implements DisconnectedCallback {

    @Setter
    private Channel channel;

    @Override
    public void onDisconnected(Throwable cause) {
        log.error("Channel [" + channel.getConnection().toString() + "," +
                channel.getChannelNumber() + "] disconnected.", cause);
    }
}
